package com.qf.entity.vo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class UserVO implements Serializable {
    @NotBlank(message = "姓名不能为空")
    private String name;

    @Min(message = "年龄不能小于9",value = 0)
    @Max(message = "年龄不能大于160",value = 160)
    private Integer age;

    private Integer sex;

    private Integer status;

    @NotBlank(message = "描述不能为空")
    private String remark;
}
